home *** CD-ROM | disk | FTP | other *** search
/ Suzy B Software 2 / Suzy B Software CD-ROM 2 (1994).iso / new_file / mintprgs / mint112s / mint112s.lzh / welcome.c < prev    next >
Encoding:
C/C++ Source or Header  |  1994-11-15  |  2.2 KB  |  83 lines

  1. /* welcome.c - MiNT welcome message
  2.  * Copyright 1992,1993,1994 Atari Corp.  All Rights Reserved.
  3.  *=======================================================================
  4.  * 920625 kbad
  5.  */
  6. #include "mint.h"
  7. #include "version.h"
  8.  
  9. const char *memprot_notice = "\
  10. You have used -m to turn off memory\r\n\
  11. protection.  On a 68000, you don't\r\n\
  12. need to do this because MiNT will\r\n\
  13. do it for you automagically.\r\n";
  14.  
  15. const char *memprot_warning = "\033p\
  16.             *** WARNING ***            \033q\r\n\
  17. You have turned off memory protection.\r\n\
  18. This is not recommended, and may not be\r\n\
  19. supported in the future.\r\n";
  20.  
  21. const char *insuff_mem_warning = "\033p\
  22.             *** WARNING ***            \033q\r\n\
  23. Your system's memory is not large enough\r\n\
  24. to permit memory protection to be enabled.\r\n";
  25.  
  26. const char *greet1 = "\r\n\033p\033f\
  27.  MiNT is Now TOS (" __DATE__ ")         \033q\r\n\
  28.  MiNT v"; /*x.xx prelim version PL xx*/
  29.  
  30. #ifdef MULTITOS
  31. #define MINT_NAME    "MultiTOS"
  32. #else
  33. #define MINT_NAME    "MiNT"
  34. #endif
  35.  
  36. const char *greet2 = "\r\n\
  37.  \xbd 1990,1991,1992 Eric R. Smith\r\n\
  38.  MultiTOS kernel\r\n\
  39.  \xbd 1992,1993,1994 Atari Corporation\r\n\
  40.  All Rights Reserved.\r\n\033p\
  41.  Use this program at your own risk!    \033q\r\n\r\n";
  42.  
  43. /*
  44.  * "boot MiNT?" messages, in various langauges:
  45.  */
  46.  
  47.  
  48. struct yn_message {
  49.     const char *message;    /* message to print */
  50.     char    yes_let;    /* letter to hit for yes */
  51.     char    no_let;        /* letter to hit for no */
  52. } boot_it[MAXLANG] = {
  53. { "Load " MINT_NAME "?   (y)es (n)o ", 'y', 'n' },
  54. { MINT_NAME " laden?   (j)a (n)ein ", 'j', 'n' },
  55. { "Charger " MINT_NAME "?   (o)ui (n)on ", 'o', 'n' },
  56. { "Load " MINT_NAME "?   (y)es (n)o ", 'y', 'n' },        /* reserved */
  57. { "¿Cargar " MINT_NAME "?   (s)i (n)o ", 's', 'n' },    /* upside down ? is 168 dec. */
  58. { "Carica " MINT_NAME "?   (s)i (n)o ", 's', 'n' }
  59. };
  60.  
  61.  
  62. /*
  63.  * ask the user whether s/he wants to boot MultiTOS; returns 1 if
  64.  * yes, 0 if no
  65.  */
  66.  
  67. int
  68. boot_kernel_p()
  69. {
  70.     extern int gl_lang;
  71.     struct yn_message *msg;
  72.     int y;
  73.  
  74.     msg = &boot_it[gl_lang];
  75.     Cconws(msg->message);
  76.     y = (int) Cconin();
  77.     if (tolower(y) == msg->yes_let)
  78.         return 1;
  79.     else
  80.         return 0;
  81. }
  82.  
  83.